Fix another place where assigned_name can be NULL
authorMukund Sivaraman <muks@banu.com>
Thu, 26 Feb 2015 15:03:16 +0000 (20:33 +0530)
committerMukund Sivaraman <muks@banu.com>
Thu, 26 Feb 2015 15:04:36 +0000 (20:34 +0530)
babl/babl-model.c

index fec520923e0abae3c8aba0c305630722425af570..dda1cbe73d5063263f4278ce1cbc3c14a9086d8f 100644 (file)
@@ -121,7 +121,8 @@ babl_model_new (void *first_argument,
                 if (components >= BABL_MAX_COMPONENTS)
                   {
                     babl_log ("maximum number of components (%i) exceeded for %s",
-                              BABL_MAX_COMPONENTS, assigned_name);
+                              BABL_MAX_COMPONENTS,
+                              assigned_name ? assigned_name : "(unnamed)");
                   }
                 component [components++] = (BablComponent *) bablc;
                 break;